home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.20030409-20031118
/
000012_squares@shaw.ca_Wed Apr 23 09:00:16 EDT 2003.msg
< prev
next >
Wrap
Text File
|
2020-01-01
|
5KB
|
144 lines
Article: 14228 of comp.protocols.kermit.misc
Path: newsmaster.cc.columbia.edu!phl-feed.news.verio.net!iad-feed.news.verio.net!iad-peer.news.verio.net!news.verio.net!news.maxwell.syr.edu!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!sjc70.webusenet.com!news.webusenet.com!pd2nf1so.cg.shawcable.net!residential.shaw.ca!news3.calgary.shaw.ca.POSTED!not-for-mail
X-Trace-PostClient-IP: 24.68.68.120
From: "Will Martin" <squares@shaw.ca>
Newsgroups: comp.protocols.kermit.misc
Subject: File Transfer as Backup from Xenix 2.3.4 to WinOS
Lines: 123
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Message-ID: <ofnpa.182462$vs.18609662@news3.calgary.shaw.ca>
Date: Wed, 23 Apr 2003 02:54:12 GMT
NNTP-Posting-Host: 24.69.255.232
X-Complaints-To: abuse@shaw.ca
X-Trace: news3.calgary.shaw.ca 1051066452 24.69.255.232 (Tue, 22 Apr 2003 20:54:12 MDT)
NNTP-Posting-Date: Tue, 22 Apr 2003 20:54:12 MDT
Organization: Shaw Residential Internet
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14228
I'm new to Kermit and would appreciate some assistance with the following
problem:
We have a Xenix 2.3.4 box that I need to backup files off of onto the NT
network. Files are regularly created, changed, or deleted from the data
areas. The Xenix box is date-windowed as well, so some files have current
year, some current -28.
I've written a xenix script to create a file listing, then use the following
listing to loop through the file listing. The kermit scripts are running on
the Xenix box.
Set file names literal
Set file collision backup
Set send pathname relative
; Open the file listing
open read xenixfilelist
xif fail {
open read XENIXFILELIST
xif fail {
echo File list not found
stop
}
}
; Read first item and begin testing variable
read line
define \%a ./
define \%b ../
define \%c /
define \%d :
define \%e NOTASSIGNED
define \%z \v(date)
define CurDir .
; Enter loop to check listing entry
while success {
assign \%e Blank
take kermlnset.txt
read line
}
close read-file
The following file checks each file listing line to determine if it's a file
and appends the correct path to the filename.
define \%h \fsubstring(\m(line),1,\flength(\m(line))-1)
if = \flength(\m(line)) 0 GOTO ZERLEN
if equal \m(line) \%a GOTO DIRTOP
if equal \m(line) \%b Goto DIRSUB
define \%g \Frindex(\%d, \m(line),1)
if > \%g 0 GOTO DirChg
define \%f \Frindex(\%c, \m(line),1)
if > \%f 0 GOTO FinChar
define \%e FIL
goto DONE
:DIRTOP
define \%e TOP
goto DONE
:DIRSUB
define \%e SUB
goto DONE
:ZERLEN
define \%e ZER
goto DONE
:FinCHAR
define \%e SLS
goto DONE
:DirChg
assign CurDir \%h
define \%e COL
goto DONE
:DONE
define \%i \m(CurDir)/\m(line) ; Path and file name of current
item
define \%j None ; Define empty field
define \%k 0 ; Define empty date field
if exist \%i { ; If the file exists
define \%j Found FILE ; report that file is found
define \%k \Fdate(\%i) ; determine the file modification
} ; date and store to variable
if equal \%e FIL { ; If the item is a file
define \%l \fmjd(\%z) ; Store today as julian
define \%m \fmjd(\%k) ; Store file date as julian
if < \%m \%l { ; If file date < today ** as the Xenix
box is date windowed, today returns 1975 as the year.....
echo \%i \%j
remote set file collision backup
send \%i
} else {
echo \%i \%j
remote set file collision update
send \%i
}
}
end
Based on the date of the file I need to ensure the update to the NT system
is accurate; all of the files affected by date windowing are not updating to
the NT box with the date from the Xenix system. The above script simply
tries to set file collision to "backup" for any files whose year is less
than the date windowed year, and to update for all others.
The problems at this time:
1. For "remote set file collision update" I receive an invalid set
parameter message.
2. The receiving system is not getting the date attribute correctly; the
date windowed files are all being received as current year, which prevents
simply updating them.
3. I'm not familiar enough with file/date manipulation to change the file
creation date in Xenix through kermit. This would be a clean solution. I
have read many sections of "Using C-Kermit" and the varied and plentiful
addenda available on the columbia site.
4. My lack of learning time at this date, and the robust nature of kermit,
tell me that I've not found the best solution to this mishmash.
Any assistance that can be provided is appreciated.
Thanks,
Will Martin
will_m@novax.com